package com.ny.dao;

import com.ny.entity.Stud;

import java.sql.SQLException;
import java.util.List;

public interface StudentDao {
    int addStu(Stud stud) throws SQLException;
    Stud log(String name,String pwd) throws SQLException;
    Stud changePwd(String name,String pwd) throws SQLException;
    Stud deleteStu(String name,String pwd) throws SQLException;
    Stud changePho(String name,String phone) throws SQLException;
    List<Stud> findAll() throws SQLException;

}
